package com.atXiao.food.strategy.pay;

/**
 * @author: lixiaoxiao
 * @date: 2024/1/11 15:21
 * @version: 1.0
 * @desc:
 */
public class PaymentExample {
    public static void main(String[] args) {
        String selectKey="UNIONPAY";
        Payment paymentStrategy = PaymentFactory.getPaymentStrategyMap(selectKey);
        Result result = paymentStrategy.doPayment(100.0);
        System.out.println(result);
    }
}
